package app.area;

public class Segment extends AbstractArea {
    public Segment() {
    }
    @Override
    public boolean contains(float x, float y, float r) {
        if (inBox (x, y, 0, 0, r, r)) {
            return x*x + y*y <= r*r;
        }
        else {
            return false;
        }
    }
}
